package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author zhmwi
 * @Date 2021/7/8
 * @Dersciption
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {

    //根据医院code查询医院
    Hospital getHospitalByHoscode(String hoscode);

    //模糊查询医院列表
    List<Hospital> getHospitalByHosnameLike(String hosname);
}
